﻿@model OT.Areas.Admin.Models.Languages

@{
    ViewBag.Title = "Edit";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}

<h2>Language Edit</h2>
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
       <div class="editor-label">
            @Html.LabelFor(model => model.LanguageCode)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.LanguageCode, new { @maxlength = "10" })
            @Html.ValidationMessageFor(model => model.LanguageCode)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LanguageName)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.LanguageName, new { @maxlength = "50" })
            @Html.ValidationMessageFor(model => model.LanguageName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Description, new { @maxlength = "100" })
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <div class="btn-group pull-left">
            <input class="btn dropdown-toggle" type="submit" value="Save" />
        </div>
        @Html.ActionLink("Delete", "Delete", new { Model.LanguageID }, new { @onclick = "javascript:return confirm('Do you want to delete ?')" })

    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
